package com.example.propertymanagement.repository;

import com.example.propertymanagement.entity.Pet;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * PetRepository：宠物数据访问层，负责与数据库交互
 */
public interface PetRepository extends JpaRepository<Pet, Integer> {

    // 根据业主ID获取宠物信息
    List<Pet> findByOwnerId(Integer ownerId);
}